<!DOCTYPE html>
<!--[if lt IE 7]>      <html class="no-js lt-ie9 lt-ie8 lt-ie7"> <![endif]-->
<!--[if IE 7]>         <html class="no-js lt-ie9 lt-ie8"> <![endif]-->
<!--[if IE 8]>         <html class="no-js lt-ie9"> <![endif]-->
<!--[if gt IE 8]><!--> <html class="no-js"> <!--<![endif]-->
    <head>
        <meta charset="utf-8">
        <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
        <title>发表文章-社区化校园电子报刊平台</title>
        <meta name="description" content="社区化校园电子报刊平台是服务于西北工业大学师生的学院报纸的互联网阅读平台">
        <meta name="viewport" content="width=device-width">

        <!-- Place favicon.ico and apple-touch-icon.png in the root directory -->
        <link href="favicon.ico" type="image/x-icon" rel="shortcut icon">
        <link rel="stylesheet" href="css/normalize.css">
        <link rel="stylesheet" href="css/main.css">
        <script src="js/vendor/modernizr-2.6.2.min.js"></script>
        <script type="text/javascript" charset="utf-8" src="ueditor/editor_config.js"></script>
        <script type="text/javascript" charset="utf-8" src="ueditor/editor_all.js"></script>

        <style type="text/css">
            .clear {
                clear: both;
            }
        </style>
    </head>
    <body id="edit">
        <!--[if lt IE 7]>
            <p class="chromeframe">You are using an <strong>outdated</strong> browser. Please <a href="http://browsehappy.com/">upgrade your browser</a> or <a href="http://www.google.com/chromeframe/?redirect=true">activate Google Chrome Frame</a> to improve your experience.</p>
        <![endif]-->

        <!-- Add your site or application content here -->
        
        <header class="top">
            <nav>
                <ul class="site-nav">
                    <li><a href="index.html">主页</a></li>
                    <li><a href="paper.html">电子报</a></li>
                    <li><a href="voice.html">心声</a></li>
                    <li><a href="survey.html">民调</a></li>
                    <li><a href="person.html">人物</a></li>
                    <li><a href="tag.html">标签</a></li>
                </ul>
                <ul class="user-panel">
                    <li><a class="user-photo" href="user-center.html" title="photo of member"></a></li>
                    <li>
                        <a href="user_center.html">昵称</a>
                        <ul class="user-home">
                            <li><a href="user-home.html">个人主页</a></li>
                            <li><a href="setting.html">设置</a></li>
                            <li><a href="index.html">退出</a></li>
                        </ul>
                    </li>
                </ul>
            </nav>
        </header>
        <section class="main clearfix">
            <section class="content">
                <form action="" method="post" class="clearfix">
                    <div class="edit-article-title">请输入标题</div>
                    <script  id="editor" type="text/plain">                        
                        <div class="edit-article-body">在这里输入正文内容</div>
                    </script>
                    <section class="article-attach">
                        <input type="text" class="add-tags" placeholder="请输入标签，以空格分隔" />
                        <select name="pub-college" id="pub-college">
                            <option value="college0">选择学院投稿</option>
                            <option value="college1">college1</option>
                            <option value="college2">college2</option>
                            <option value="college3">college3</option>
                            <option value="college4">college4</option>
                            <option value="college5">college5</option>
                            <option value="college6">college6</option>
                            <option value="college7">college7</option>
                            <option value="college8">college8</option>
                            <option value="college9">college9</option>
                            <option value="college10">college10</option>
                            <option value="college11">college11</option>
                            <option value="college12">college12</option>
                            <option value="college13">college13</option>
                            <option value="college14">college14</option>
                            <option value="college15">college15</option>
                            <option value="college16">college16</option>
                        </select>
                    </section>
                    <input type="submit" class="sub-btn" value="投稿" />
                </form>            	
            </section><!-- end of content -->
            <aside class="sidebar">            	
                <section class="user-info  clearfix">
                    <img src="img/member/1.jpg" alt="Photo of user">
                    <span class="user-name">昵称</span>
                    <ul class="base-info">
                        <li>22岁</li>
                        <li>女</li>
                        <li>四川达州人</li>
                    </ul>
                    <ul class="campus-info">
                        <li>本科</li>
                        <li>2009级</li>
                        <li>软件与微电子学院</li>
                    </ul>
                </section><!-- end of user-info -->
                <ul class="ent-list clearfix">
                    <li class="ent-item"><a href="edit.html" target="_blank"><span>发表文章</span></a></li>
                    <li class="ent-item"><a href="voice.html" target="_blank"><span>发布心声</span></a></li>
                    <li class="ent-item"><a href="setting.html" target="_blank"><span>设置</span></a></li>
                </ul><!--end of ent-list-->            
            </aside>
        </section>
        <footer>
            <ul class="site-nav">
                <li><a href="index.html">主页</a></li>
                <li><a href="papar.html">电子报</a></li>
                <li><a href="voice.html">心声</a></li>
                <li><a href="survey.html">民调</a></li>
                <li><a href="person.html">人物</a></li>
                <li><a href="tag.html">标签</a></li>
            </ul>
            <section id="copyright">
                <p>Copyright &copy; 2013 by <a href="http://www.cnblogs.com/deng303359">Daisy Teng</a>&amp;<a href="http://iamhaixi.cn">Haixi Zhang</a></p>                
            </section>
        </footer>
        <script src="//ajax.googleapis.com/ajax/libs/jquery/1.9.1/jquery.min.js"></script>
        <script>window.jQuery || document.write('<script src="js/vendor/jquery-1.9.1.min.js"><\/script>')</script>
        <script src="js/plugins.js"></script>
        <script src="js/main.js"></script>

        <!-- Google Analytics: change UA-XXXXX-X to be your site's ID. -->
        <script>
            var _gaq=[['_setAccount','UA-XXXXX-X'],['_trackPageview']];
            (function(d,t){var g=d.createElement(t),s=d.getElementsByTagName(t)[0];
            g.src='//www.google-analytics.com/ga.js';
            s.parentNode.insertBefore(g,s)}(document,'script'));
        </script>
        <script type="text/javascript">
            //实例化编辑器
            var ue = UE.getEditor('editor');

            ue.addListener('ready',function(){
                this.focus()
            });

            // function insertHtml(){
            //     var value = prompt('插入html代码','');
            //     ue.execCommand('insertHtml',value)
            // }
            // function createEditor(){
            //     enableBtn();
            //     UE.getEditor('editor')
            // }
            // function getAllHtml() {
            //     alert( UE.getEditor('editor').getAllHtml() )
            // }
            // function getContent() {
            //     var arr = [];
            //     arr.push( "使用editor.getContent()方法可以获得编辑器的内容" );
            //     arr.push( "内容为：" );
            //     arr.push(  UE.getEditor('editor').getContent() );
            //     alert( arr.join( "\n" ) );
            // }
            // function getPlainTxt() {
            //     var arr = [];
            //     arr.push( "使用editor.getPlainTxt()方法可以获得编辑器的带格式的纯文本内容" );
            //     arr.push( "内容为：" );
            //     arr.push(  UE.getEditor('editor').getPlainTxt() );
            //     alert( arr.join( '\n' ) )
            // }
            // function setContent(isAppendTo) {
            //     var arr = [];
            //     arr.push( "使用editor.setContent('欢迎使用ueditor')方法可以设置编辑器的内容" );
            //     UE.getEditor('editor').setContent( '欢迎使用ueditor',isAppendTo );
            //     alert( arr.join( "\n" ) );
            // }
            // function setDisabled() {
            //     UE.getEditor('editor').setDisabled( 'fullscreen' );
            //     disableBtn( "enable" );
            // }

            // function setEnabled() {
            //     UE.getEditor('editor').setEnabled();
            //     enableBtn();
            // }

            // function getText() {
            //     //当你点击按钮时编辑区域已经失去了焦点，如果直接用getText将不会得到内容，所以要在选回来，然后取得内容
            //     var range =  UE.getEditor('editor').selection.getRange();
            //     range.select();
            //     var txt =  UE.getEditor('editor').selection.getText();
            //     alert( txt )
            // }

            // function getContentTxt() {
            //     var arr = [];
            //     arr.push( "使用editor.getContentTxt()方法可以获得编辑器的纯文本内容" );
            //     arr.push( "编辑器的纯文本内容为：" );
            //     arr.push(  UE.getEditor('editor').getContentTxt() );
            //     alert( arr.join( "\n" ) );
            // }
            // function hasContent() {
            //     var arr = [];
            //     arr.push( "使用editor.hasContents()方法判断编辑器里是否有内容" );
            //     arr.push( "判断结果为：" );
            //     arr.push(  UE.getEditor('editor').hasContents() );
            //     alert( arr.join( "\n" ) );
            // }
            // function setFocus() {
            //     UE.getEditor('editor').focus();
            // }
            // function deleteEditor() {
            //     disableBtn();
            //     UE.getEditor('editor').destroy();
            // }
            // function disableBtn( str ) {
            //     var div = document.getElementById( 'btns' );
            //     var btns = domUtils.getElementsByTagName( div, "button" );
            //     for ( var i = 0, btn; btn = btns[i++]; ) {
            //         if ( btn.id == str ) {
            //             domUtils.removeAttributes( btn, ["disabled"] );
            //         } else {
            //             btn.setAttribute( "disabled", "true" );
            //         }
            //     }
            // }
            // function enableBtn() {
            //     var div = document.getElementById( 'btns' );
            //     var btns = domUtils.getElementsByTagName( div, "button" );
            //     for ( var i = 0, btn; btn = btns[i++]; ) {
            //         domUtils.removeAttributes( btn, ["disabled"] );
            //     }
            // }
        </script>
    </body>
</html>
